package com.v9.common.dto;

import com.fasterxml.jackson.annotation.JsonProperty;
import com.v9.common.model.FunResTypeEnum;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.util.List;

@Data
public class FunResTreeDto {
    @Schema(description = "功能ID")
    private Long id;
    @Schema(description = "名称")
    private String name;
    @Schema(description = "功能编码")
    private String code;
    @Schema(description = "上级功能")
    private Long parentId;
    @Schema(description = "数据")
    private String data;
    @Schema(description = "标题")
    private String title;
    @Schema(description = "图标")
    private String icon;
    @Schema(description = "资源类型")
    @JsonProperty("menuType")
    private FunResTypeEnum funResType;
    @Schema(description = "排序号")
    private Integer seq;
    @Schema(description = "显示状态")
    private Boolean display;
    @Schema(description = "菜单状态")
    private Boolean status;
    @Schema(description = "是否缓存")
    private Boolean cache;
    @JsonProperty("path")
    @Schema(description = "路由地址")
    private String routingAddress;
    @Schema(description = "组件路径")
    private String component;
    @Schema(description = "权限字符")
    private String permissionCode;
    @Schema(description = "子集列表")
    private List<FunResTreeDto> children;
}
